package cate.common.table.limittimegift;

import cate.common.table.ESheet;

import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;

public class LimitDayGiftSheet extends ESheet<LimitDayGiftRow> {
    @Override
    public String getSheetName() {
        return "开服礼包";
    }

    public List<LimitDayGiftRow> todayGifts(int day) {
        List<LimitDayGiftRow> todayGifts = new LinkedList<>();
        List<LimitDayGiftRow> rowList = getList().stream().filter(row -> row.startDay == day).collect(Collectors.toList());
        todayGifts.addAll(rowList);
        return todayGifts;
    }
}
